package com.dianping.cat.core.dal;

import java.util.Arrays;
import java.util.Date;
import org.unidal.dal.jdbc.DataObject;














public class HourlyReportContent
  extends DataObject
{
  private int m_reportId;
  private byte[] m_content;
  private Date m_period;
  private Date m_creationDate;
  private int m_keyReportId;
  private long m_contentLength;
  private int m_startId;
  private double m_capacity;

  public void afterLoad() {
/*  33 */     this.m_keyReportId = this.m_reportId;
/*  34 */     clearUsage();
  }


/*  38 */   public double getCapacity() { return this.m_capacity; }



/*  42 */   public byte[] getContent() { return this.m_content; }



/*  46 */   public long getContentLength() { return this.m_contentLength; }



/*  50 */   public Date getCreationDate() { return this.m_creationDate; }



/*  54 */   public int getKeyReportId() { return this.m_keyReportId; }



/*  58 */   public Date getPeriod() { return this.m_period; }



/*  62 */   public int getReportId() { return this.m_reportId; }



/*  66 */   public int getStartId() { return this.m_startId; }


  public HourlyReportContent setCapacity(double capacity) {
/*  70 */     setFieldUsed(HourlyReportContentEntity.CAPACITY, true);
/*  71 */     this.m_capacity = capacity;
/*  72 */     return this;
  }

  public HourlyReportContent setContent(byte[] content) {
/*  76 */     setFieldUsed(HourlyReportContentEntity.CONTENT, true);
/*  77 */     this.m_content = content;
    return this;
  }

  public HourlyReportContent setContentLength(long contentLength) {
/*  82 */     setFieldUsed(HourlyReportContentEntity.CONTENT_LENGTH, true);
/*  83 */     this.m_contentLength = contentLength;
/*  84 */     return this;
  }

  public HourlyReportContent setCreationDate(Date creationDate) {
/*  88 */     setFieldUsed(HourlyReportContentEntity.CREATION_DATE, true);
/*  89 */     this.m_creationDate = creationDate;
/*  90 */     return this;
  }

  public HourlyReportContent setKeyReportId(int keyReportId) {
/*  94 */     setFieldUsed(HourlyReportContentEntity.KEY_REPORT_ID, true);
/*  95 */     this.m_keyReportId = keyReportId;
/*  96 */     return this;
  }

  public HourlyReportContent setPeriod(Date period) {
/* 100 */     setFieldUsed(HourlyReportContentEntity.PERIOD, true);
/* 101 */     this.m_period = period;
/* 102 */     return this;
  }

  public HourlyReportContent setReportId(int reportId) {
/* 106 */     setFieldUsed(HourlyReportContentEntity.REPORT_ID, true);
/* 107 */     this.m_reportId = reportId;

/* 109 */     setFieldUsed(HourlyReportContentEntity.KEY_REPORT_ID, true);
/* 110 */     this.m_keyReportId = reportId;
/* 111 */     return this;
  }

  public HourlyReportContent setStartId(int startId) {
/* 115 */     setFieldUsed(HourlyReportContentEntity.START_ID, true);
/* 116 */     this.m_startId = startId;
/* 117 */     return this;
  }


  public String toString() {
/* 122 */     StringBuilder sb = new StringBuilder(1024);

/* 124 */     sb.append("HourlyReportContent[");
/* 125 */     sb.append("capacity: ").append(this.m_capacity);
/* 126 */     sb.append(", content: ").append((this.m_content == null) ? null : Arrays.asList(new byte[][] { this.m_content }));
/* 127 */     sb.append(", content-length: ").append(this.m_contentLength);
/* 128 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 129 */     sb.append(", key-report-id: ").append(this.m_keyReportId);
/* 130 */     sb.append(", period: ").append(this.m_period);
/* 131 */     sb.append(", report-id: ").append(this.m_reportId);
/* 132 */     sb.append(", start-id: ").append(this.m_startId);
/* 133 */     sb.append("]");
/* 134 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/HourlyReportContent.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */